cur_dir=`pwd`

# clone库
git clone https://github.com/SakalisC/Splash-3
cd $cur_dir/Splash-3
git checkout 67f002
git apply ../67f002.patch

# 拷贝输入
cd $cur_dir/inputs/raytrace
cp *.env $cur_dir/Splash-3/codes/apps/raytrace/inputs

# 编译benchmark
cd $cur_dir/Splash-3/codes/apps/barnes
make clean
make

cd $cur_dir/Splash-3/codes/apps/radiosity
make clean
make

cd $cur_dir/Splash-3/codes/apps/raytrace
make clean
make